import request from '@/utils/request'

// 登录接口
export const login = (data) => request.post('/user/login', data)

// 获取用户信息
export const getUserInfo = () => request.get('/user')

// 退出登录
export const logout = () => request.post('/user/logout')

// 注册接口
export const registered = (data) => request.post('/user/registered', data)
